<div class="panel-group left-side" id="accordion" style="overflow-y: auto;">
    {if condition="checkPath('index/index')"}
    <div class="panel panel-default panelborder">
        <a link="{:url('index/index')}" class="act" >
            <div class="panel-heading f-index">
                <span class="glyphicon glyphicon-home pre-icon"></span>首页
            </div>
        </a>
    </div>
    {/if}
    {if condition="checkPath('mach/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" class="act" >
            <div class="panel-heading f-addmach f-machlist f-machinfo f-machxg ">
                <span class="glyphicon glyphicon-th-list pre-icon"></span>门店管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseTwo" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light">
                <ul>
                    {if condition="checkPath('mach/addmach')"}
                    <li class="child-addmach "><a link="{:url('mach/addmach')}">添加门店</a></li>
                    {/if}
                    {if condition="checkPath('mach/machlist')"}
                    <li class="child-machlist child-machinfo child-machxg "><a link="{:url('mach/machlist')}">门店列表</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}

    {if condition="checkPath('personnel/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseFour" class="act">
            <div class="panel-heading f-personnellist f-addpersonnel f-personnelxg f-cashieradd f-cashierlist f-cashieredit">
                <span class="glyphicon glyphicon-user pre-icon"></span>员工管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseFour" class="panel-collapse collapse menu" >
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('personnel/cashieradd')"}
                    <li class="child-addpersonnel child-cashieradd"><a link="{:url('personnel/cashieradd')}">添加员工</a></li>
                    {/if}
                    {if condition="checkPath('personnel/cashierlist')"}
                    <li class="child-personnellist child-personnelxg child-cashierlist child-cashieredit"><a link="{:url('personnel/cashierlist')}">员工列表</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('pay/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree" class="act">
            <div class="panel-heading f-paycount f-paylog f-reportform">
                <span class="glyphicon glyphicon-usd pre-icon"></span>交易中心
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseThree" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('pay/paycount')"}
                    <li class="paycount"><a link="{:url('pay/paycount')}">交易统计</a></li>
                    {/if}


                    {if condition="checkPath('pay/reportform')"}
                    <li class="reportform"><a link="{:url('pay/reportform')}">交易报表</a></li>
                    {/if}

                    <!--{if condition="checkPath('pay/paychannel')"}-->
                    <!--<li class="child-paychannel"><a link="{:url('pay/paychannel')}">交易方式统计</a></li>-->
                    <!--{/if}-->
                    {if condition="checkPath('pay/paylog')"}
                    <li class="paylog"><a link="{:url('pay/paylog')}">交易明细</a></li>
                    {/if}

                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('wxfans/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#fensi" class="act">
            <div class="panel-heading f-fanslist f-fansinfo">
                <span class="glyphicon glyphicon-qrcode pre-icon"></span>粉丝管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="fensi" class="panel-collapse collapse">
            <div class="panel-body pad0 light menu">
                <ul>
                    {if condition="checkPath('wxfans/fanslist')"}
                    <li class="child-fanslist child-fansinfo"><a link="{:url('wxfans/fanslist')}">粉丝列表</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}

    {if condition="checkPath('cardus/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" class="act">
            <div class="panel-heading f-bonusbizcardsadd f-cardreglist f-Shop f-getLists f-setshare f-importuser f-bonusset f-Cardus f-cardsurvey f-cardjcadd f-cardjcinfo f-cardjcmodify f-cardoperlog f-carddellist f-cardjclist f-cardbonuslist f-reportcardmember f-storagegl f-reportcardmemberlist f-czgivelist f-czgiveedit f-czgivehigh f-ranklist f-usercenter f-rankedit f-getcardinfo f-creatcardus f-rankadd f-czgiveadd f-carduslist f-cardinfo f-getlist f-editcards f-activezd f-paycard f-diswitch f-sharecard f-qrcodelist f-qrcodeedit f-qrcodeadd">
                <span class="glyphicon glyphicon-credit-card pre-icon"></span>会员卡管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseSeven" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('cardus/getLists')"}
                    <li class="child-getlists child-importuser child-getlist"><a link="{:url('cardus/getLists')}">会员列表</a></li>
                    {/if}
                    {if condition="checkPath('cardus/carduslist')"}
                    <li class="child-cardusbalance child-qrcodebizedit child-bonusbizcardsadd child-czgivelist child-bonusset child-setshare child-carduslink child-paycardus child-cardjcinfo child-cardjcadd child-cardjcmodify child-paycarduslist child-cardjclist Shop-goodsadd Cardus-editstocks Shop-goodslist Shop-shopmall Shop-orderlist Shop-goodsinfo Shop-goodsedit child-storagegl child-creatcardus child-getcardinfo child-ranklist child-usercenter child-rankedit child-czgiveedit child-rankadd child-czgiveadd child-czgivehigh child-carduslist child-cardinfo child-getlist child-editcards child-activezd child-paycard child-diswitch child-sharecard child-qrcodelist child-qrcodeedit child-qrcodeadd"><a link="{:url('cardus/carduslist')}">会员卡列表</a></li>
                    {/if}
                    {if condition="checkPath('report/cardsurvey')"}
                    <li class="child-cardsurvey"><a link="{:url('report/cardsurvey')}">概览数据</a></li>
                    {/if}
                    {if condition="checkPath('report/reportcardmemberlist')"}
                    <li class="child-reportcardmemberlist"><a link="{:url('report/reportcardmemberlist')}">消费数据</a></li>
                    {/if}
                    {if condition="checkPath('report/cardreglist')"}
                    <li class="child-cardreglist"><a link="{:url('report/cardreglist')}">充值数据</a></li>
                    {/if}
                    {if condition="checkPath('report/cardbonuslist')"}
                    <li class="child-cardbonuslist"><a link="{:url('report/cardbonuslist')}">积分数据</a></li>
                    {/if}
                    {if condition="checkPath('report/carddellist')"}
                    <li class="child-carddellist"><a link="{:url('report/carddellist')}">退卡数据</a></li>
                    {/if}

                </ul>
            </div>
        </div>
    </div>
    {/if}


    {if condition="check_momach(session('login_top_mid'))"}
    {if condition="checkPath('cardusold/defaultold')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#cardusold" class="act">
            <div class="panel-heading f-getlistsold f-cardusbalanceold f-cardsurveyold f-reportcardmemberlistold f-cardreglistold f-cardbonuslistold f-carddellistold f-cardoperlogold">
                <span class="glyphicon glyphicon-credit-card pre-icon"></span>会员卡管理(旧)
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="cardusold" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('cardusold/getlistsold')"}
                    <li class=" child-getlistsold child-cardusbalanceold"><a link="{:url('cardusold/getlistsold')}">会员列表</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/cardsurveyold')"}
                    <li class="child-cardsurveyold"><a link="{:url('cardusold/cardsurveyold')}">概览数据</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/reportcardmemberlistold')"}
                    <li class="child-reportcardmemberlistold"><a link="{:url('cardusold/reportcardmemberlistold')}">消费数据</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/cardreglistold')"}
                    <li class="child-cardreglistold"><a link="{:url('cardusold/cardreglistold')}">充值数据</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/cardbonuslistold')"}
                    <li class="child-cardbonuslistold"><a link="{:url('cardusold/cardbonuslistold')}">积分数据</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/carddellistold')"}
                    <li class="child-carddellistold"><a link="{:url('cardusold/carddellistold')}">退卡数据</a></li>
                    {/if}
                    {if condition="checkPath('cardusold/cardoperlogold')"}
                    <li class="child-cardoperlogold"><a link="{:url('cardusold/cardoperlogold')}">操作记录</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    {/if}

    {if condition="checkPath('cardgifts/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSevenss" class="act">
            <div class="panel-heading f-cardgiftlist f-cardgiftpaylist f-consumecardgiftlist f-creatcardgift f-editcardgift f-cardgiftinfo f-getcardgiftinfo f-cardgiftracklist f-cardgiftrackcate f-cardgiftrackthemelist f-cardgiftrackthemeadd f-cardgiftrackthemeedit f-creatcardrack f-cardrackput f-machpaygift f-getgiftlists">
                <span class="glyphicon glyphicon-credit-card pre-icon"></span>礼品卡管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseSevenss" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('cardgifts/cardgiftlist')"}
                    <li class="child-cardgiftlist  child-creatcardgift child-editcardgift child-cardgiftinfo "><a link="{:url('cardgifts/cardgiftlist')}">礼品卡列表</a></li>
                    {/if}

                    {if condition="checkPath('cardgifts/cardgiftracklist')"}
                    <li class="child-cardgiftracklist child-cardgiftrackcate child-cardgiftrackthemelist child-cardgiftrackthemeadd child-cardgiftrackthemeedit child-creatcardrack child-cardrackput child-machpaygift"><a link="{:url('cardgifts/cardgiftracklist')}">货架管理</a></li>
                    {/if}
                    {if condition="checkPath('cardgifts/cardgiftpaylist')"}
                    <li class=" child-cardgiftpaylist"><a link="{:url('cardgifts/cardgiftpaylist')}">购买记录</a></li>
                    {/if}
                    {if condition="checkPath('cardgifts/getgiftlists')"}
                    <li class=" child-getgiftlists"><a link="{:url('cardgifts/getgiftlists')}">领卡列表</a></li>
                    {/if}
                    {if condition="checkPath('cardgifts/consumecardgiftlist')"}
                    <li class=" child-consumecardgiftlist"><a link="{:url('cardgifts/consumecardgiftlist')}">核销记录</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}




    {if condition="checkPath('cards/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#kaquan" class="act">
            <div class="panel-heading  f-reportcardgeneral f-cardgetlists f-reportcardgenerallist f-cardgetlist f-cardslist f-creatcards f-editstock f-draftslist f-overlist f-editdrafts">
                <span class="glyphicon glyphicon-credit-card pre-icon"></span>卡券管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="kaquan" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('cards/cardslist')"}
                    <li class="child-cardslist child-creatcards child-editstock child-cardgetlist child-draftslist child-overlist child-editdrafts "><a link="{:url('cards/cardslist')}">卡券列表</a></li>
                    {/if}
                    {if condition="checkPath('report/reportcardgeneral')"}
                    <li class="child-reportcardgeneral "><a link="{:url('report/reportcardgeneral')}">卡券统计</a></li>
                    {/if}
                    {if condition="checkPath('cards/cardgetlists')"}
                    <li class="child-cardgetlists "><a link="{:url('cards/cardgetlists')}">领卡记录</a></li>
                    {/if}
                    {if condition="checkPath('report/reportcardgenerallist')"}
                    <li class="child-reportcardgenerallist"><a link="{:url('report/reportcardgenerallist')}">核销记录</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}



    {if condition="checkPath('marke/tools')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseEight" class="act">
            <div class="panel-heading f-newcourtesy f-paymentputcardslist f-tools f-masscard f-masstpl f-firegive f-paypurcardslist f-paypurcardsinfo f-paypurcardsadd f-followputcards f-freecardslist f-freecardsinfo f-clickputcards f-freecardsadd f-clickputcardsadd f-clickputcardsinfo f-clickputlog f-sharecount f-wxputsetup f-payputcards f-gamcash f-machputcards">
                <span class="glyphicon glyphicon-star pre-icon"></span>营销工具
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseEight" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>

                    {if condition="checkPath('marke/tools')"}
                    <li class="child-tools child-paymentputcardslist child-newcourtesy child-masscard Marke-masstpl child-firegive child-paypurcardslist  child-paypurcardsinfo child-paypurcardsadd child-followputcards child-freecardsinfo child-freecardslist child-freecardsadd child-clickputcards child-clickputlog child-clickputcardsadd child-clickputcardsinfo child-sharecount child-wxputsetup child-payputcards child-gamcash child-machputcards"><a link="{:url('marke/tools')}">活动营销</a></li>
                    {/if}
                    <!--{if condition="checkPath('marke/importuser')"}-->
                    <!--<li class="child-importuser"></li>-->
                    <!--{/if}-->
                </ul>
            </div>
        </div>
    </div>
    {/if}


    {eq name=":session('login_top_mid')" value="1"}
    {if condition="checkPath('marke/tools')"}
    <!--<div class="panel panel-default panelborder">-->
    <!--<a data-toggle="collapse" data-parent="#accordion" link="#collapseEight" class="act">-->
    <!--<div class="panel-heading f-newcourtesy f-tools f-masscard f-masstpl f-importuser f-creatcards f-reportcardgeneral f-cardgetlist f-tools">-->
    <!--<span class="glyphicon glyphicon-star pre-icon"></span>营销工具-->
    <!--<span class="glyphicon glyphicon-chevron-down next-icon"></span>-->
    <!--</div>-->
    <!--</a>-->
    <!--<div id="collapseEight" class="panel-collapse collapse">-->
    <!--<div class="panel-body pad0 light ">-->
    <!--<ul>-->
    <!--{if condition="checkPath('report/reportcardgeneral')"}-->
    <!--<li class="child-creatcards"><a link="{:url('cards/creatcards')}">卡券创建</a></li>-->
    <!--{/if}-->
    <!--{if condition="checkPath('report/reportcardgeneral')"}-->
    <!--<li class="child-reportcardgeneral child-cardslist child-editstock child-reportcardgenerallist"><a link="{:url('report/reportcardgeneral')}">卡券管理</a></li>-->
    <!--{/if}-->
    <!--{if condition="checkPath('report/reportcardgenerallist')"}-->
    <!--<li class="child-cardgetlist"><a link="{:url('cards/cardgetlist')}">领卡记录</a></li>-->
    <!--{/if}-->
    <!--{if condition="checkPath('marke/tools')"}-->
    <!--<li class="child-tools child-newcourtesy child-masscard Marke-masstpl"><a link="{:url('marke/tools')}">活动营销</a></li>-->
    <!--{/if}-->
    <!--{if condition="checkPath('marke/importuser')"}-->
    <!--<li class="child-importuser"><a link="{:url('marke/importuser')}">导入会员</a></li>-->
    <!--{/if}-->
    <!--</ul>-->
    <!--</div>-->
    <!--</div>-->
    <!--</div>-->
    {/if}
    {/eq}

    {eq name=":session('login_top_mid')" value="1"}
    {if condition="checkPath('Wxsystem/default')"}
    <!--<div class="panel panel-default panelborder">-->
    <!--<a data-toggle="collapse" data-parent="#accordion" link="#collapsesystem" class="act">-->
    <!--<div class="panel-heading f-wx_menu f-wx_tplmesg f-wx_authinfo">-->
    <!--<span class="glyphicon glyphicon-cog pre-icon"></span>系统设置-->
    <!--<span class="glyphicon glyphicon-chevron-down next-icon"></span>-->
    <!--</div>-->
    <!--</a>-->
    <!--<div id="collapsesystem" class="panel-collapse collapse">-->
    <!--<div class="panel-body pad0 light ">-->
    <!--<ul>-->
    <!--{if condition="checkPath('wxsystem/wx_menu')"}-->
    <!--<li class="child-wx_menu"><a link="{:url('Wxsystem/wx_menu')}">自定义菜单管理</a></li>-->
    <!--{/if}-->
    <!--{if condition="checkPath('Wxsystem/wx_authinfo')"}-->
    <!--<li class="child-wx_authinfo"><a link="{:url('Wxsystem/wx_authinfo')}">授权管理</a>-->
    <!--{/if}-->
    <!--<li class="child-index"><a link="{:url('Microprogram/index')}">小程序管理</a></li>-->
    <!--<li class="child-set_xcx_domain"><a link="{:url('Microprogram/set_xcx_domain')}">设置域名</a></li>-->
    <!--<li class="child-bind_tester"><a link="{:url('Microprogram/bind_tester')}">体验者管理</a>-->
    <!--<li class="child-sub_program"><a link="{:url('Microprogram/sub_program')}">代码管理</a>-->
    <!--<li class="child-yylist"><a link="{:url('Microprogram/yylist')}">预约明细</a>-->
    <!--<li class="child-set_prostore"><a link="{:url('Microprogram/set_prostore')}">门店内容</a>-->

    <!--</ul>-->
    <!--</div>-->
    <!--</div>-->
    <!--</div>-->
    {/if}
    {/eq}


    {if condition="checkPath('Wxsystem/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapsesystem" class="act">
            <div class="panel-heading f-wx_menu f-wx_tplmesg f-wx_authinfo">
                <span class="glyphicon glyphicon-cog pre-icon"></span>微信管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapsesystem" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('wxsystem/wx_menu')"}
                    <li class="child-wx_menu"><a link="{:url('Wxsystem/wx_menu')}">自定义菜单管理</a></li>
                    {/if}
                    {if condition="checkPath('Wxsystem/wx_tplmesg')"}
                    <li class="child-wx_tplmesg"><a link="{:url('Wxsystem/wx_tplmesg')}">模版消息管理</a></li>
                    {/if}
                    {if condition="checkPath('Wxsystem/wx_authinfo')"}
                    <li class="child-wx_authinfo"><a link="{:url('Wxsystem/wx_authinfo')}">授权管理</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('Wxsystem/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapsexcx" class="act">
            <div class="panel-heading f-Microprogram f-Microprogram-set_xcx_domain f-Microprogram-bind_tester f-Microprogram-sub_program f-Microprogram-set_prostore">
                <span class="glyphicon glyphicon-cog pre-icon"></span>小程序管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapsexcx" class="panel-collapse collapse menu">
            <div class="panel-body pad0 light ">
                <ul>
                    <li class="child-set_xcx_domain"><a link="{:url('Microprogram/set_xcx_domain')}">设置域名</a></li>
                    <li class="child-bind_tester"><a link="{:url('Microprogram/bind_tester')}">体验者管理</a></li>
                    <li class="child-sub_program"><a link="{:url('Microprogram/sub_program')}">代码管理</a></li>
                    <li class="child-yylist"><a link="{:url('Microprogram/yylist')}">预约明细</a></li>
                    <li class="child-set_prostore"><a link="{:url('Microprogram/set_prostore')}">门店内容</a></li>

                </ul>
            </div>
        </div>
    </div>
    {/if}

    <!--<div class="panel panel-default panelborder">-->
    <!--<a link="{:Config('appconfig.url').Config('appconfig.filename')}" download="{:Config('appconfig.url').Config('appconfig.filename')}" >-->
    <!--<div class="panel-heading">-->
    <!--<span class="glyphicon glyphicon-download-alt pre-icon"></span>客户端下载-->
    <!--</div>-->
    <!--</a>-->
    <!--</div>-->
</div>